#pragma once

#include "stdafx.h"
#include <mfapi.h>

struct  MediaTypeMap
{
	int ffmpeg_mediaType;
	GUID mf_mediaType;
	int decoderFlag;   //0 no need decoder 1 need video decoder 2 need audio decoer
};


class MediaTypeConvert
{
public:

	static MediaTypeMap const * find_by_ffmpeg_type(
		int ffmpeg_type);

	static MediaTypeMap const * find_by_mf_type(
		GUID mf_type);

	static MediaTypeMap const * table();

	static size_t count();

private:
	static MediaTypeMap const table_[];

};